package com.token.keys;
import com.alibaba.fastjson.JSONObject;
import com.token.base.FuncUtil;

/**
 * 读取当前用户权限相关信息
 * @author chenjianxiong 2020/2/18
 */
public class JpReadServiceImpl implements ReadService{
    JpKeys jp;
    public JpReadServiceImpl() {
        jp = new JpKeys();
    }

    @Override
    public void setFieldData(FuncUtil funcUtil)throws Exception{
//        jp.setSysPath("");
    }

    @Override
    public void printJsonObject(FuncUtil funcUtil) throws Exception{
        funcUtil.putJsonData("data",jp.toJsonObject());
    }

    @Override
    public JSONObject getJsonObject() throws Exception {
        return jp.toJsonObject();
    }
}
